1
The Y86-64 Instruction Set Architecture
AI031 Lesson 4
00:00

The Instruction Set Architecture (ISA) serves as the fundamental contract between software and hardware. It defines the programmer-visible state and the specific operations the processor executes. The Y86-64 ISA is an educational subset of x86-64, simplifying complex CISC designs into a more manageable model while retaining register-intensive procedure linkage.

1. Programmer-Visible State

The state includes the Register File (RF) with 15 registers, Condition Codes (CC) for flow control, the Program Counter (PC), and a Status Code (Stat) indicating normal operation (AOK), halting (HLT), or errors (ADR/INS).

Register File %rax %rbx %r14 %rax ... %r14 CC Z,S,O PC 0x00...00 Memory (DMEM) Large Array of Bytes

2. CISC vs. RISC Characteristics

While x86-64 is classic CISC, Y86-64 trends toward RISC with fixed-length encodings and a strict load/store architecture, where memory is only accessed via specific move instructions like rmmovq rA, D(rB).

main.py
TERMINAL bash — 80x24
> Ready. Click "Run" to execute.
>